package top.lshaci.learning.spring.security.oauth2.uaa.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * PasswordEncoderConfig
 *
 * @author lshaci
 * @since 1.0.0
 */
@Slf4j
@Configuration
public class PasswordEncoderConfig {

    @Bean
    PasswordEncoder passwordEncoder() {
        log.debug("Config password encoder...");
        return new BCryptPasswordEncoder();
    }
}
